inherited dtmda_MachineNo: Tdtmda_MachineNo
  OldCreateOrder = True
  Left = 912
  Top = 309
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'select * from V_da_MachineNo where 0=1'
    Left = 104
    Top = 56
    object adsMasterID: TStringField
      FieldName = 'ID'
    end
    object adsMasterCode: TStringField
      DisplayLabel = #32534#30721
      FieldName = 'Code'
    end
    object adsMasterName: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'Name'
      Size = 100
    end
    object adsMasterSpecs: TStringField
      DisplayLabel = #35774#22791#22411#21495
      FieldName = 'Specs'
      Size = 50
    end
    object adsMasterSNCode: TStringField
      DisplayLabel = 'SN'#30721
      FieldName = 'SNCode'
      Size = 50
    end
    object adsMasterStatus: TWordField
      FieldName = 'Status'
    end
    object adsMasterStatusName: TStringField
      DisplayLabel = #35774#22791#29366#24577
      FieldName = 'StatusName'
    end
    object adsMasterHelperCode: TStringField
      DisplayLabel = #21161#35760#30721
      FieldName = 'HelperCode'
      Size = 50
    end
    object adsMasterRuleChildID: TStringField
      DisplayLabel = #35268#21017#32534#30721'ID'
      FieldName = 'RuleChildID'
    end
    object adsMasterDeptID: TStringField
      DisplayLabel = #25152#23646#37096#38376'|ID'
      FieldName = 'DeptID'
    end
    object adsMasterDeptName: TStringField
      DisplayLabel = #25152#23646#37096#38376'|'#21517#31216
      FieldName = 'DeptName'
      Size = 50
    end
    object adsMasterDeptFullName: TStringField
      DisplayLabel = #25152#23646#37096#38376'|'#20840#31216
      FieldName = 'DeptFullName'
      Size = 100
    end
    object adsMasterCreateDate: TDateTimeField
      DisplayLabel = #24314#26723#26085#26399
      FieldName = 'CreateDate'
    end
    object adsMasterMainDays: TIntegerField
      DisplayLabel = #32500#25252#21608#26399
      FieldName = 'MainDays'
    end
    object adsMasterBuyDate: TDateTimeField
      DisplayLabel = #37319#36141#26085#26399
      FieldName = 'BuyDate'
    end
    object adsMasterInstallDate: TDateTimeField
      DisplayLabel = #23433#35013#26085#26399
      FieldName = 'InstallDate'
    end
    object adsMasterMachineType: TStringField
      DisplayLabel = #35774#22791#31867#22411'ID'
      FieldName = 'MachineType'
    end
    object adsMasterMachineTypeName: TStringField
      DisplayLabel = #35774#22791#31867#22411
      FieldName = 'MachineTypeName'
      Size = 50
    end
    object adsMasterMchType: TStringField
      DisplayLabel = #31867#22411'ID'
      FieldName = 'MchType'
    end
    object adsMasterMchTypeName: TStringField
      DisplayLabel = #31867#22411
      FieldName = 'MchTypeName'
      Size = 50
    end
    object adsMasterHasStop: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterStoper: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26102#38388
      FieldName = 'StopDate'
    end
    object adsMasterStopMemo: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
      Size = 50
    end
    object adsMasterHasUse: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterHasSysdefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysdefine'
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  inherited frdsMain: TfrDBDataSet
    Left = 24
    Top = 56
  end
  inherited adsMasterEdit: TADODataSet
    CursorType = ctStatic
    CommandText = 'Select * from da_MachineNo'
    Top = 8
    object adsMasterEditID: TStringField
      FieldName = 'ID'
    end
    object adsMasterEditCode: TStringField
      DisplayLabel = #32534#30721
      FieldName = 'Code'
      OnChange = adsMasterEditCodeChange
    end
    object adsMasterEditName: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'Name'
      OnChange = adsMasterEditNameChange
      Size = 100
    end
    object adsMasterEditHelperCode: TStringField
      DisplayLabel = #21161#35760#30721
      FieldName = 'HelperCode'
      Size = 50
    end
    object adsMasterEditSpecs: TStringField
      DisplayLabel = #35774#22791#22411#21495
      FieldName = 'Specs'
      Size = 50
    end
    object adsMasterEditSNCode: TStringField
      DisplayLabel = 'SN'#30721
      FieldName = 'SNCode'
      Size = 50
    end
    object adsMasterEditStatus: TWordField
      DisplayLabel = #35774#22791#29366#24577
      FieldName = 'Status'
    end
    object adsMasterEditDeptID: TStringField
      DisplayLabel = #25152#23646#37096#38376'ID'
      FieldName = 'DeptID'
    end
    object adsMasterEditres_DeptName: TStringField
      DisplayLabel = #25152#23646#37096#38376
      FieldKind = fkLookup
      FieldName = 'res_DeptName'
      LookupDataSet = adsDept
      LookupKeyFields = 'DeptID'
      LookupResultField = 'DeptFullName'
      KeyFields = 'DeptID'
      Size = 100
      Lookup = True
    end
    object adsMasterEditCreateDate: TDateTimeField
      DisplayLabel = #24314#26723#26085#26399
      FieldName = 'CreateDate'
    end
    object adsMasterEditBuyDate: TDateTimeField
      DisplayLabel = #37319#36141#26085#26399
      FieldName = 'BuyDate'
    end
    object adsMasterEditInstallDate: TDateTimeField
      DisplayLabel = #23433#35013#26085#26399
      FieldName = 'InstallDate'
    end
    object adsMasterEditMachineType: TStringField
      DisplayLabel = #35774#22791#31867#22411'ID'
      FieldName = 'MachineType'
    end
    object adsMasterEditres_MachineTypeName: TStringField
      DisplayLabel = #35774#22791#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_MachineTypeName'
      LookupDataSet = adsTree
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'MachineType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditMainDays: TIntegerField
      DisplayLabel = #32500#25252#21608#26399
      FieldName = 'MainDays'
    end
    object adsMasterEditMchType: TStringField
      DisplayLabel = #31867#22411'ID'
      FieldName = 'MchType'
    end
    object adsMasterEditHasStop: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterEditStoper: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterEditStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26102#38388
      FieldName = 'StopDate'
    end
    object adsMasterEditStopMemo: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
      Size = 50
    end
    object adsMasterEditHasUse: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterEditHasSysdefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysdefine'
    end
    object adsMasterEditHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterEditHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterEditChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterEditCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterEditWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterEditWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterEditModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterEditModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterEditRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 500
    end
  end
  inherited frdsMasterEdit: TfrDBDataSet
    Left = 24
    Top = 112
  end
  object adsTree: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select * from V_da_MachineType'#13#10' order by Code'
    Parameters = <>
    Left = 128
    Top = 136
  end
  object adsDept: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'select DeptID, DeptCode, DeptName, DeptFullName'#13#10'from V_da_Depar' +
      'tment where isnull(HasStop,0)=0'
    Parameters = <>
    Left = 224
    Top = 136
  end
end
